#include<stdio.h>
#include<math.h>
int main(void)
{
    double a,b,c,x1,x2,delta;
    scanf("%lf %lf %lf",&a,&b,&c);
    delta=b*b-4*a*c;
    if(a!=0){
	   if(delta>0){
	   	x1=(-b/(2*a)+(sqrt(delta)/(2*a)));
	   	x2=(-b/(2*a)-(sqrt(delta)/(2*a)));
	   	printf("%.2lf\n%.2lf",x1,x2);
	   }
	   else if(delta<0&&b!=0)
	   	printf("%.2lf+%.2lfi\n%.2lf-%.2lfi",(-b)/(2*a),(sqrt(-delta))/(2*a),(-b)/(2*a),(sqrt(-delta))/(2*a));
	   	else if(delta<0&&b==0)
	   	printf("%.2fi\n%.2fi",(sqrt(-delta))/(2*a),-(sqrt(-delta))/(2*a));
	   	else 
	   	printf("%.2lf",(-b)/(2*a));
	   }
	   else if(b!=0&&c!=0)
	   	printf("%.2lf",(-c)/b);
	    else if(b==0&&c==0){
	   	printf("Zero Equation");
	   }else if(b==0&&c!=0){
	   	printf("Not An Equation");
	   }
	
    return 0;
}
